const cls = require('cls-hooked');
const namespace = cls.createNamespace('my-very-own-namespace');
const {Sequelize} = require("sequelize")
const {sqlLogger} = require("../logger")
Sequelize.useCLS(namespace);
exports.sequelize = new Sequelize("d_management","root","123456", {
    host: "localhost",
    dialect: "mysql",
    logging: (msg) => {
        sqlLogger.debug(msg)
    }
})